﻿using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;

namespace JustMVCTest.Models
{
    public class PO_Import
    {
        [Required]
        public string Cost_Cent { get; set; }
        public string Int_Order { get; set; }
        [Required]
        public string Prof_Cent { get; set; }
        [Required]
        public int cost_elem { get; set; }
        [Required]
        public string co_el_name { get; set; }
        [Required]
        public int Vendor { get; set; }
        [Key, Column(Order = 0)]
        public long PONumber { get; set; }
        [Key, Column(Order = 1)]
        public int Item { get; set; }
        [Required]
        public string Descr { get; set; }
        public string UM { get; set; }
        [Required]
        public string T_Curr { get; set; }
        [Required]
        public string VendorName { get; set; }
        [Required]
        public string Requisitio { get; set; }
        public string Sch_Lin { get; set; }
        [Required]
        public float Ord_Qty { get; set; }
        [Required]
        public float Open_Qty { get; set; }
        [Required]
        public float Order_Amt { get; set; }
        [Required]
        public float Open_Amt_T { get; set; }
        [Required]
        public float Open_Amt_L { get; set; }
        [Required]
        public DateTime DeliveryDate { get; set; }
        [Required]
        public DateTime Purchase_O { get; set; }
        
    }

    public partial class PODBContext : DbContext
    {
        public DbSet<PO_Import> PO_Imports { get; set; }
    }
}